using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Item_Information : MonoBehaviour
{
    public GameObject itemInformation;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    private void OnMouseOver()
    {
        if(Input.GetMouseButtonDown(1))
        {
            itemInformation.gameObject.SetActive(true);
            itemInformation.transform.position = Input.mousePosition;
            itemInformation.transform.GetChild(0).GetComponent<Text>().text = GameManager.instance.items[0].itemDes.ToString();
        }
    }
}
